package com.zhongjianjian.RabbitMq.XiaoFeiXiaoXi;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.data.redis.connection.Message;
import org.springframework.stereotype.Component;

import java.nio.channels.Channel;

/**
 * @类名: com.zhongjianjian.RabbitMq.XiaoFeiXiaoXi
 * @作者: lgt
 * @创建时间: 2020-03-02 21:48
 * @描述:测试消息接收确认
 **/
//@Component
//@RabbitListener(queues = {"TEST-DEAD-QUEUE"})
public class ToXiaoFeiMessage {

    // @RabbitHandler
    public void test(Object obj, Message message, Channel channel){
        System.out.println("======>"+obj);
    }
}
